package com.xiyou.luckdraw.api.dal.mapper.luckyelite;

import com.xiyou.luckdraw.api.dal.entitys.UserTntegralLog;
import com.xiyou.luckdraw.common.tkmapper.TkMapper;

import java.util.List;
import java.util.Map;

public interface UserTntegralLog2Mapper extends TkMapper<UserTntegralLog> {
    /**
     * 根据userId查询兑换券记录列表
     * @param userId
     * @return
     */
    List<UserTntegralLog> selectListByUserId(Long userId);

    /**
     * 统计一周新增券
     * @return
     */
    List<Map> selectCountNewVoucher();
}
